<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>
	ThundeRex中美专递|中美专递|快递|中美送|电子商务物流解决方案
</title><link href="{CSS_PATH}fenglei_css/Member.css" rel="stylesheet" type="text/css" />
    <script src="{JS_PATH}fenglei_js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <meta http-equiv="pragma" content="no-cache" /><meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
    <base target="_self" />
    <script type="text/javascript">
        $(document).ready(function () {
            $("#lititle1").click(function () {
                $("#navMember1").slideToggle("slow");
            });
            $("#lititle2").click(function () {
                $("#navMember2").slideToggle("slow");
            });
            $("#lititle3").click(function () {
                $("#navMember3").slideToggle("slow");
            });
            $("#lititle4").click(function () {
                $("#navMember4").slideToggle("slow");
            });
            $("li").click(function () {
                $("li").css("background-color", "inherit");
                $(this).css("background-color", "skyblue");
            });
        });
    </script>
    <script type="text/javascript">
        function showDialog(url, width, height) {
            showModelessDialog(url, window, 'dialogWidth:' + width + 'px;dialogHeight:' + height + 'px;center:yes;status:no;scroll:yes;help:no');
        }
        function opennew(newurl, windowName, width, height) {
            var theLeft, theTop
            theLeft = (screen.width - width) / 2 - 2
            theTop = (screen.height - height) / 2
            window.open(newurl, windowName, 'width=' + width + ',height=' + height + ',scrollbars=1,status=0,toolbar=0,directories=0,menubar=0,location=0,resizable=0,copyhistory=0,left=' + theLeft + ',top=' + theTop + '').focus();
            //return true;
        }
        function refresh() {
            this.location = this.location;
        }
    </script>
</head>
<body>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>
  <div id="addrmanbox">
        <div id="title">
            <span class="spanleft">收货地址</span> <span class="spanright">
                <a id="lbAddAddr" href="index.php?m=address&c=index&a=add_address">添加收货地址&gt;</a></span>
        </div>
       <form action="index.php?m=address&c=index&a=change" method="post">
        <div id="divbody">
            <table border="1" cellpadding="3" cellspacing="0" width="100%" style="border-color: #CCCCCC;
                table-layout: auto; empty-cells: show; text-align: center;">
                
                        <tbody><tr>
                            <td class="tabletitle">
                            </td>
                            <td class="tabletitle">
                                收货人
                            </td>
                            <td class="tabletitle">
                                电话/手机
                            </td>
                            <td class="tabletitle">
                                城市
                            </td>
                            <td class="tabletitle">
                                收货地址
                            </td>
                            <td class="tabletitle">
                                邮编
                            </td>
                            <td class="tabletitle">
                                身份证
                            </td>
                            <td class="tabletitle">
                                英文地址
                            </td>
                            <td class="tabletitle">
                                状态
                            </td>
                        </tr>
                    	 {loop $data $r}
                            <tr style="line-height: 15px; overflow: hidden; height: 30px;">
                            <td style="width: 7%">
                                <input id="Checkbox" type="radio" onClick="check()" name="id" value="{$r[id]}">
                            </td>
                            <td style="width: 15%">
                                {$r[consignee]}
                            </td>
                            <td style="width: 10%">
                               {$r[mobile]}<br>{$r[tel]}
                            </td>
                            <td style="width: 10%">
                                {$r[city]}
                            </td>
                            <td style="width: 19%">
                                {$r[c_address]}
                            </td>
                            <td style="width: 10%">
                                {$r[postcode]}
                            </td>
                            <td style="width: 10%">
                                {$r[identitycard]}
                            </td>
                            <td style="width: 12%">
                                {$r[e_address]}
                            </td>
                            <td style="width: 10%">
                            {if $r[state]==1}
                               默认
                            
                             {/if} 
                            </td>
                        </tr>
                    {/loop}
            </tbody></table>
            <div class="paginator">
                
<!-- AspNetPager V7.2 for VS2005 & VS2008  Copyright:2003-2008 Webdiyer (www.webdiyer.com) -->
<!--记录总数只有一页，AspNetPager已自动隐藏，若需在只有一页数据时显示AspNetPager，请将AlwaysShow属性值设为true！-->
<!-- AspNetPager V7.2 for VS2005 & VS2008 End -->


            </div>
            <div class="manbut">
                <input type="submit" name="submit" value="默认" onClick="return my_check();" id="btDefault" class="buttonA" style="border-color:#B8D4E8;height:25px;width:60px;">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="submit" name="dosubmit" value="编辑" onClick="return my_check();" id="btEdit" class="buttonA" style="border-color:#B8D4E8;height:25px;width:60px;">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="submit" name="delsubmit" value="删除" onClick="return my_check()" id="btDelete" class="buttonA" style="border-color:#B8D4E8;height:25px;width:60px;">
                <input type="hidden" name="HiddenField1" id="HiddenField1">
            </div>
        </div>
    </div>
 </form>
<script type="text/javascript">
	function my_check(){
		var check=document.getElementsByName("id");
		//alert(check.length);
		for(var a in check){
			if(check[a].checked){
				return true;
				}
			
			}
		alert("请选择需要操作的地址");
		return false;
		}


</script>

</div>

</body>
</html>
